package com.jeesite.modules.exam.showfile;

import com.jeesite.common.web.BaseController;
import com.jeesite.modules.task.deploy.entity.DcSupTaskInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description:
 * @author: ciye
 * @date: 2022/8/15 12:31
 */
@Controller
@RequestMapping(value = "${adminPath}/showFile")
public class DcSupExamShowFileController extends BaseController {
    @RequestMapping(value = {"notice", ""})
    public String showFile(DcSupTaskInfo dcSupTaskInfo, Model model) {
        dcSupTaskInfo.setId("exam");
        model.addAttribute("dcSupTaskInfo",dcSupTaskInfo);
        return "modules/exam/showfile/examNotice";
    }
    @RequestMapping(value = "systemInstructions")
    public String systemInstructions(DcSupTaskInfo dcSupTaskInfo, Model model) {
        dcSupTaskInfo.setId("systemInstructions");
        model.addAttribute("dcSupTaskInfo",dcSupTaskInfo);
        return "modules/exam/showfile/systemInstructions";
    }
}
